package tpsi.pong;

import java.io.IOException;
import java.net.UnknownHostException;
import java.util.logging.Logger;

import org.xlightweb.server.XHttpServer;

public class WebSocket {
	public static int listenPort = 8080;
	public static Logger log = Logger.getLogger("main");

	public static void main(String[] args) {
		try {
			XHttpServer xhs = new XHttpServer(listenPort,
					new MyWebSocketHandler());
			xhs.start();
		} catch (UnknownHostException e) {
			log.warning(e.getMessage());
		} catch (IOException e) {
			log.warning(e.getMessage());
		}
	}
}
